let ArrayHelp={

    /**
     * 构建key val形式数组
     * @param {} String 
     * @param {*} firstSym 
     * @param {*} sendSym 
     * @returns 
     */
    buildKeyAndVal:function(String,firstSym,sendSym){
          if(!String) return [];
          let strArr = String.split(firstSym);// ['name=demo','password=23'];
          let vals = {};  
          for (let ky in strArr) {
              let val = strArr[ky];//'a=index'.......
              let temArray = val.split(sendSym);
              vals[temArray[0]] = temArray[1];
          }
          return vals;
    }


}
module.exports=ArrayHelp;